<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include/src :: form_base_js_and_css"/>
</head>

<body>

<div class="layui-layout layui-layout-admin">
	<form class="layui-form" id="formId" method="post" action="/api/inter/thrOperateCompanyInfo/editOperator">
		<div class="layui-header layui-inline" style="margin-left: 10px;">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit"><i class="iconfont icon-save"></i>保存</button>
		</div>
		
		<input type="hidden" name="id" th:value="${dto.id}">
		
		<div class="layui-body">
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label">运营人工号(旧)：</label>
						<div class="layui-input-block">
							<input type="text" name="cUserOld" th:value="${dto.cUserOld}" class="layui-input layui-disabled" readonly >
						</div>
					</div>
				</div>
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label">运营人姓名(旧)：</label>
						<div class="layui-input-block">
							<input type="text" name="cUserNameOld" th:value="${dto.cUserNameOld}" class="layui-input layui-disabled" readonly >
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label"><font class="f_red">*</font>运营人工号(新)：</label>
						<div class="layui-input-block">
							<input type="text" name="cUser" value="" autocomplete="off" placeholder="请输入"  class="layui-input" lay-verify="required"  >
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label"><font class="f_red">*</font>登录密码：</label>
						<div class="layui-input-block">
							<input type="text" name="password" value="" autocomplete="off" placeholder="请输入"  class="layui-input" lay-verify="required"  >
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
	<script>
	$(function () {
		layui.use(['form'], function(){
			var form = layui.form;
			
			// 表单提交，共用同一个
			form.on('submit(formSubmit)', function(data){
				var indexOfLoading = layer.load(1, {
					shade: [0.5,'#000000'] //0.1透明度的白色背景
				});
				$.post(data.form.action, data.field, function(res){
					if (res.code == 0) {
						layer.msg('操作成功');
						setTimeout(function(){
							window.location.reload();
						}, 1000);
					} else {
						layer.close(indexOfLoading);
						layer.msg(res.msg);
					}
				});
				return false;
			});
		});
	});
	</script>
</body>
</html>